package nuc.soft.xsf.dao.impl;

import nuc.soft.xsf.dao.IPostDao;
import nuc.soft.xsf.dao.impl.base.BaseDaoImpl;
import nuc.soft.xsf.model.Post;

public class PostDaoImpl  extends BaseDaoImpl<Post> implements IPostDao{

	public PostDaoImpl() {
	   super.setNameSpace("nuc.soft.xsf.mapper.PostMapper");
	}
	
	public int insert(Post post){
		this.getSqlSession().insert("nuc.soft.xsf.mapper.PostMapper" + ".insert", post);
		int id=post.getPostId();
		return id;   
    }
}
